package cn.edu.scau.cmi.houzhicong.whole;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class ShowStage extends Stage {

    public ShowStage(String url){

        Parent root = null;
        try {
            root = FXMLLoader.load(getClass().getResource(url));
        } catch (IOException e) {
            e.printStackTrace();
        }
        this.setTitle("");
        this.setScene(new Scene(root));
        this.setResizable(false);
    }
}